import router from "@/router/index";
import { getToken, removeToken, removeUsername } from "@/utils/app";
import { ElMessage } from "element-plus";

const whiteRouter = [
  "/login",
  "/Function/createLoan",
  "/Function/Listed",
  "/Function/HotHouseType",
  "/index",
  "/User/Identity",
]; //indexOf方法，判断数组中存在某一个值,不存在返回-1
router.beforeEach((to, from, next) => {
  next();
});
